﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LibraryModels;
using System.Data;

namespace LibraryIDAL
{
    /// <summary>
    /// InterfaceName: ITabBookState
    /// Auther:Leo.wl
    /// Time:2010-04-14
    /// 接口层ITabBookState 的摘要说明。
    /// </summary>
    public  interface ITabBookState
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int StateID);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(LibraryModels.TabBookState model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        int Update(TabBookState model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        int Delete(int StateID);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        TabBookState GetModel(int StateID);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        /// <summary>
        /// 获得前几行数据
        /// </summary>
        DataSet GetList(int Top, string strWhere, string filedOrder);
        /// <summary>
        /// 根据分页获得数据列表
        /// </summary>
        DataSet GetList(string fldStr, string strWhere, int PageIndex, int PageSize, string keyFld, string strSort, int isGetCount, string tableName);
        #endregion  成员方法
    }
}
